Integrand size = 37, antiderivative size = 255 \[ \int \frac {(d+e x)^3}{\sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}} \, dx=\frac {5 \left (c d^2-a e^2\right )^2 \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}{8 c^3 d^3}+\frac {5 \left (c d^2-a e^2\right ) (d+e x) \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}{12 c^2 d^2}+\frac {(d+e x)^2 \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}{3 c d}+\frac {5 \left (c d^2-a e^2\right )^3 \text {arctanh}\left (\frac {c d^2+a e^2+2 c d e x}{2 \sqrt {c} \sqrt {d} \sqrt {e} \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}\right )}{16 c^{7/2} d^{7/2} \sqrt {e}} \]
[Out]
Time = 0.14 (sec) , antiderivative size = 255, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.108, Rules used = {684, 654, 635, 212} \[ \int \frac {(d+e x)^3}{\sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}} \, dx=\frac {5 \left (c d^2-a e^2\right )^3 \text {arctanh}\left (\frac {a e^2+c d^2+2 c d e x}{2 \sqrt {c} \sqrt {d} \sqrt {e} \sqrt {x \left (a e^2+c d^2\right )+a d e+c d e x^2}}\right )}{16 c^{7/2} d^{7/2} \sqrt {e}}+\frac {5 \left (c d^2-a e^2\right )^2 \sqrt {x \left (a e^2+c d^2\right )+a d e+c d e x^2}}{8 c^3 d^3}+\frac {5 (d+e x) \left (c d^2-a e^2\right ) \sqrt {x \left (a e^2+c d^2\right )+a d e+c d e x^2}}{12 c^2 d^2}+\frac {(d+e x)^2 \sqrt {x \left (a e^2+c d^2\right )+a d e+c d e x^2}}{3 c d} \]
[In]
[Out]
Rule 212
Rule 635
Rule 654
Rule 684
Rubi steps \begin{align*} \text {integral}& = \frac {(d+e x)^2 \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}{3 c d}+\frac {\left (5 \left (d^2-\frac {a e^2}{c}\right )\right ) \int \frac {(d+e x)^2}{\sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}} \, dx}{6 d} \\ & = \frac {5 \left (c d^2-a e^2\right ) (d+e x) \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}{12 c^2 d^2}+\frac {(d+e x)^2 \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}{3 c d}+\frac {\left (5 \left (d^2-\frac {a e^2}{c}\right )^2\right ) \int \frac {d+e x}{\sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}} \, dx}{8 d^2} \\ & = \frac {5 \left (c d^2-a e^2\right )^2 \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}{8 c^3 d^3}+\frac {5 \left (c d^2-a e^2\right ) (d+e x) \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}{12 c^2 d^2}+\frac {(d+e x)^2 \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}{3 c d}+\frac {\left (5 \left (d^2-\frac {a e^2}{c}\right )^3\right ) \int \frac {1}{\sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}} \, dx}{16 d^3} \\ & = \frac {5 \left (c d^2-a e^2\right )^2 \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}{8 c^3 d^3}+\frac {5 \left (c d^2-a e^2\right ) (d+e x) \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}{12 c^2 d^2}+\frac {(d+e x)^2 \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}{3 c d}+\frac {\left (5 \left (d^2-\frac {a e^2}{c}\right )^3\right ) \text {Subst}\left (\int \frac {1}{4 c d e-x^2} \, dx,x,\frac {c d^2+a e^2+2 c d e x}{\sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}\right )}{8 d^3} \\ & = \frac {5 \left (c d^2-a e^2\right )^2 \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}{8 c^3 d^3}+\frac {5 \left (c d^2-a e^2\right ) (d+e x) \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}{12 c^2 d^2}+\frac {(d+e x)^2 \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}{3 c d}+\frac {5 \left (c d^2-a e^2\right )^3 \tanh ^{-1}\left (\frac {c d^2+a e^2+2 c d e x}{2 \sqrt {c} \sqrt {d} \sqrt {e} \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}\right )}{16 c^{7/2} d^{7/2} \sqrt {e}} \\ \end{align*}
Time = 0.30 (sec) , antiderivative size = 187, normalized size of antiderivative = 0.73 \[ \int \frac {(d+e x)^3}{\sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}} \, dx=\frac {\sqrt {c} \sqrt {d} (a e+c d x) (d+e x) \left (15 a^2 e^4-10 a c d e^2 (4 d+e x)+c^2 d^2 \left (33 d^2+26 d e x+8 e^2 x^2\right )\right )+\frac {15 \left (c d^2-a e^2\right )^3 \sqrt {a e+c d x} \sqrt {d+e x} \text {arctanh}\left (\frac {\sqrt {c} \sqrt {d} \sqrt {d+e x}}{\sqrt {e} \sqrt {a e+c d x}}\right )}{\sqrt {e}}}{24 c^{7/2} d^{7/2} \sqrt {(a e+c d x) (d+e x)}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(887\) vs. \(2(225)=450\).
Time = 2.72 (sec) , antiderivative size = 888, normalized size of antiderivative = 3.48
method | result | size |
default | \(\frac {d^{3} \ln \left (\frac {\frac {1}{2} e^{2} a +\frac {1}{2} c \,d^{2}+x c d e}{\sqrt {c d e}}+\sqrt {a d e +\left (e^{2} a +c \,d^{2}\right ) x +c d e \,x^{2}}\right )}{\sqrt {c d e}}+e^{3} \left (\frac {x^{2} \sqrt {a d e +\left (e^{2} a +c \,d^{2}\right ) x +c d e \,x^{2}}}{3 c d e}-\frac {5 \left (e^{2} a +c \,d^{2}\right ) \left (\frac {x \sqrt {a d e +\left (e^{2} a +c \,d^{2}\right ) x +c d e \,x^{2}}}{2 c d e}-\frac {3 \left (e^{2} a +c \,d^{2}\right ) \left (\frac {\sqrt {a d e +\left (e^{2} a +c \,d^{2}\right ) x +c d e \,x^{2}}}{c d e}-\frac {\left (e^{2} a +c \,d^{2}\right ) \ln \left (\frac {\frac {1}{2} e^{2} a +\frac {1}{2} c \,d^{2}+x c d e}{\sqrt {c d e}}+\sqrt {a d e +\left (e^{2} a +c \,d^{2}\right ) x +c d e \,x^{2}}\right )}{2 c d e \sqrt {c d e}}\right )}{4 c d e}-\frac {a \ln \left (\frac {\frac {1}{2} e^{2} a +\frac {1}{2} c \,d^{2}+x c d e}{\sqrt {c d e}}+\sqrt {a d e +\left (e^{2} a +c \,d^{2}\right ) x +c d e \,x^{2}}\right )}{2 c \sqrt {c d e}}\right )}{6 c d e}-\frac {2 a \left (\frac {\sqrt {a d e +\left (e^{2} a +c \,d^{2}\right ) x +c d e \,x^{2}}}{c d e}-\frac {\left (e^{2} a +c \,d^{2}\right ) \ln \left (\frac {\frac {1}{2} e^{2} a +\frac {1}{2} c \,d^{2}+x c d e}{\sqrt {c d e}}+\sqrt {a d e +\left (e^{2} a +c \,d^{2}\right ) x +c d e \,x^{2}}\right )}{2 c d e \sqrt {c d e}}\right )}{3 c}\right )+3 d \,e^{2} \left (\frac {x \sqrt {a d e +\left (e^{2} a +c \,d^{2}\right ) x +c d e \,x^{2}}}{2 c d e}-\frac {3 \left (e^{2} a +c \,d^{2}\right ) \left (\frac {\sqrt {a d e +\left (e^{2} a +c \,d^{2}\right ) x +c d e \,x^{2}}}{c d e}-\frac {\left (e^{2} a +c \,d^{2}\right ) \ln \left (\frac {\frac {1}{2} e^{2} a +\frac {1}{2} c \,d^{2}+x c d e}{\sqrt {c d e}}+\sqrt {a d e +\left (e^{2} a +c \,d^{2}\right ) x +c d e \,x^{2}}\right )}{2 c d e \sqrt {c d e}}\right )}{4 c d e}-\frac {a \ln \left (\frac {\frac {1}{2} e^{2} a +\frac {1}{2} c \,d^{2}+x c d e}{\sqrt {c d e}}+\sqrt {a d e +\left (e^{2} a +c \,d^{2}\right ) x +c d e \,x^{2}}\right )}{2 c \sqrt {c d e}}\right )+3 d^{2} e \left (\frac {\sqrt {a d e +\left (e^{2} a +c \,d^{2}\right ) x +c d e \,x^{2}}}{c d e}-\frac {\left (e^{2} a +c \,d^{2}\right ) \ln \left (\frac {\frac {1}{2} e^{2} a +\frac {1}{2} c \,d^{2}+x c d e}{\sqrt {c d e}}+\sqrt {a d e +\left (e^{2} a +c \,d^{2}\right ) x +c d e \,x^{2}}\right )}{2 c d e \sqrt {c d e}}\right )\) | \(888\) |
[In]
[Out]
none
Time = 0.35 (sec) , antiderivative size = 534, normalized size of antiderivative = 2.09 \[ \int \frac {(d+e x)^3}{\sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}} \, dx=\left [\frac {15 \, {\left (c^{3} d^{6} - 3 \, a c^{2} d^{4} e^{2} + 3 \, a^{2} c d^{2} e^{4} - a^{3} e^{6}\right )} \sqrt {c d e} \log \left (8 \, c^{2} d^{2} e^{2} x^{2} + c^{2} d^{4} + 6 \, a c d^{2} e^{2} + a^{2} e^{4} + 4 \, \sqrt {c d e x^{2} + a d e + {\left (c d^{2} + a e^{2}\right )} x} {\left (2 \, c d e x + c d^{2} + a e^{2}\right )} \sqrt {c d e} + 8 \, {\left (c^{2} d^{3} e + a c d e^{3}\right )} x\right ) + 4 \, {\left (8 \, c^{3} d^{3} e^{3} x^{2} + 33 \, c^{3} d^{5} e - 40 \, a c^{2} d^{3} e^{3} + 15 \, a^{2} c d e^{5} + 2 \, {\left (13 \, c^{3} d^{4} e^{2} - 5 \, a c^{2} d^{2} e^{4}\right )} x\right )} \sqrt {c d e x^{2} + a d e + {\left (c d^{2} + a e^{2}\right )} x}}{96 \, c^{4} d^{4} e}, -\frac {15 \, {\left (c^{3} d^{6} - 3 \, a c^{2} d^{4} e^{2} + 3 \, a^{2} c d^{2} e^{4} - a^{3} e^{6}\right )} \sqrt {-c d e} \arctan \left (\frac {\sqrt {c d e x^{2} + a d e + {\left (c d^{2} + a e^{2}\right )} x} {\left (2 \, c d e x + c d^{2} + a e^{2}\right )} \sqrt {-c d e}}{2 \, {\left (c^{2} d^{2} e^{2} x^{2} + a c d^{2} e^{2} + {\left (c^{2} d^{3} e + a c d e^{3}\right )} x\right )}}\right ) - 2 \, {\left (8 \, c^{3} d^{3} e^{3} x^{2} + 33 \, c^{3} d^{5} e - 40 \, a c^{2} d^{3} e^{3} + 15 \, a^{2} c d e^{5} + 2 \, {\left (13 \, c^{3} d^{4} e^{2} - 5 \, a c^{2} d^{2} e^{4}\right )} x\right )} \sqrt {c d e x^{2} + a d e + {\left (c d^{2} + a e^{2}\right )} x}}{48 \, c^{4} d^{4} e}\right ] \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 782 vs. \(2 (245) = 490\).
Time = 0.94 (sec) , antiderivative size = 782, normalized size of antiderivative = 3.07 \[ \int \frac {(d+e x)^3}{\sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}} \, dx=\begin {cases} \left (- \frac {a \left (3 d e^{2} - \frac {e^{2} \cdot \left (\frac {5 a e^{2}}{2} + \frac {5 c d^{2}}{2}\right )}{3 c d}\right )}{2 c} + d^{3} - \frac {\left (a e^{2} + c d^{2}\right ) \left (- \frac {2 a e^{3}}{3 c} + 3 d^{2} e - \frac {\left (\frac {3 a e^{2}}{2} + \frac {3 c d^{2}}{2}\right ) \left (3 d e^{2} - \frac {e^{2} \cdot \left (\frac {5 a e^{2}}{2} + \frac {5 c d^{2}}{2}\right )}{3 c d}\right )}{2 c d e}\right )}{2 c d e}\right ) \left (\begin {cases} \frac {\log {\left (a e^{2} + c d^{2} + 2 c d e x + 2 \sqrt {c d e} \sqrt {a d e + c d e x^{2} + x \left (a e^{2} + c d^{2}\right )} \right )}}{\sqrt {c d e}} & \text {for}\: a d e - \frac {\left (a e^{2} + c d^{2}\right )^{2}}{4 c d e} \neq 0 \\\frac {\left (x - \frac {- a e^{2} - c d^{2}}{2 c d e}\right ) \log {\left (x - \frac {- a e^{2} - c d^{2}}{2 c d e} \right )}}{\sqrt {c d e \left (x - \frac {- a e^{2} - c d^{2}}{2 c d e}\right )^{2}}} & \text {otherwise} \end {cases}\right ) + \sqrt {a d e + c d e x^{2} + x \left (a e^{2} + c d^{2}\right )} \left (\frac {e^{2} x^{2}}{3 c d} + \frac {x \left (3 d e^{2} - \frac {e^{2} \cdot \left (\frac {5 a e^{2}}{2} + \frac {5 c d^{2}}{2}\right )}{3 c d}\right )}{2 c d e} + \frac {- \frac {2 a e^{3}}{3 c} + 3 d^{2} e - \frac {\left (\frac {3 a e^{2}}{2} + \frac {3 c d^{2}}{2}\right ) \left (3 d e^{2} - \frac {e^{2} \cdot \left (\frac {5 a e^{2}}{2} + \frac {5 c d^{2}}{2}\right )}{3 c d}\right )}{2 c d e}}{c d e}\right ) & \text {for}\: c d e \neq 0 \\\frac {2 \left (\frac {c^{3} d^{9} \sqrt {a d e + x \left (a e^{2} + c d^{2}\right )}}{a^{3} e^{6} + 3 a^{2} c d^{2} e^{4} + 3 a c^{2} d^{4} e^{2} + c^{3} d^{6}} + \frac {c^{2} d^{6} e \left (a d e + x \left (a e^{2} + c d^{2}\right )\right )^{\frac {3}{2}}}{a^{3} e^{6} + 3 a^{2} c d^{2} e^{4} + 3 a c^{2} d^{4} e^{2} + c^{3} d^{6}} + \frac {3 c d^{3} e^{2} \left (a d e + x \left (a e^{2} + c d^{2}\right )\right )^{\frac {5}{2}}}{5 \left (a^{3} e^{6} + 3 a^{2} c d^{2} e^{4} + 3 a c^{2} d^{4} e^{2} + c^{3} d^{6}\right )} + \frac {e^{3} \left (a d e + x \left (a e^{2} + c d^{2}\right )\right )^{\frac {7}{2}}}{7 \left (a^{3} e^{6} + 3 a^{2} c d^{2} e^{4} + 3 a c^{2} d^{4} e^{2} + c^{3} d^{6}\right )}\right )}{a e^{2} + c d^{2}} & \text {for}\: a e^{2} + c d^{2} \neq 0 \\\frac {\begin {cases} d^{3} x & \text {for}\: e = 0 \\\frac {\left (d + e x\right )^{4}}{4 e} & \text {otherwise} \end {cases}}{\sqrt {a d e}} & \text {otherwise} \end {cases} \]
[In]
[Out]
Exception generated. \[ \int \frac {(d+e x)^3}{\sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}} \, dx=\text {Exception raised: ValueError} \]
[In]
[Out]
none
Time = 0.37 (sec) , antiderivative size = 230, normalized size of antiderivative = 0.90 \[ \int \frac {(d+e x)^3}{\sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}} \, dx=\frac {1}{24} \, \sqrt {c d e x^{2} + c d^{2} x + a e^{2} x + a d e} {\left (2 \, {\left (\frac {4 \, e^{2} x}{c d} + \frac {13 \, c^{2} d^{3} e^{3} - 5 \, a c d e^{5}}{c^{3} d^{3} e^{2}}\right )} x + \frac {33 \, c^{2} d^{4} e^{2} - 40 \, a c d^{2} e^{4} + 15 \, a^{2} e^{6}}{c^{3} d^{3} e^{2}}\right )} - \frac {5 \, {\left (c^{3} d^{6} - 3 \, a c^{2} d^{4} e^{2} + 3 \, a^{2} c d^{2} e^{4} - a^{3} e^{6}\right )} \log \left ({\left | -c d^{2} - a e^{2} - 2 \, \sqrt {c d e} {\left (\sqrt {c d e} x - \sqrt {c d e x^{2} + c d^{2} x + a e^{2} x + a d e}\right )} \right |}\right )}{16 \, \sqrt {c d e} c^{3} d^{3}} \]
[In]
[Out]
Timed out. \[ \int \frac {(d+e x)^3}{\sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}} \, dx=\int \frac {{\left (d+e\,x\right )}^3}{\sqrt {c\,d\,e\,x^2+\left (c\,d^2+a\,e^2\right )\,x+a\,d\,e}} \,d x \]
[In]
[Out]